Repository navigation
refactor(renderers): collapse React and Vue onto @layoutit/polycss/runtime with perf and lifecycle gates - #93
Merged
Merged
Conversation
… large-GLB coverage timeout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@layoutit/polycss/runtime): Added side-effect-free@layoutit/polycss/runtimeand Adopt-DOM seams (elements,wrapper,bakedLightPolicy,autoCenterSource,groundShadowFallback,atomicAtlas,onFrameReady, per-mesh render overrides,excludeFromAutoCenter) to@layoutit/polycss.@layoutit/polycss-reactand@layoutit/polycss-vueonto@layoutit/polycss/runtime(-15,500+ lines of duplicated atlas/voxel/shadow/style/controls code deleted;check-boundaries.mjsenforces@layoutit/polycss/runtime-only imports from@layoutit/polycss;check-mirrors.mjsshrunk to 12 React↔Vue sets).bench/visual-gate.mjs): Tightened all 14 cross-renderer parity cases (Vanilla/HTML/React/Vue) tothreshold: 0,includeAA: true, 0 px mismatch on Chromium + Firefox.bench/perf-gate.mjs+perf-gateCI job): Fail-closed A/B perf gate verifying active motion, 0 per-frame childList and descendant attribute mutations, exact leaf counts, no non-bucket DOM/style/<s>/layout regressions, and paired p50/p95/JS-per-frame/bimodal budgets on Chromium (also fixed a pre-existing frozen-camera bug inbench/perf-vanilla.htmlcaught by the new motion check).bench/lifecycle-gate.mjs+lifecycle-gateCI job): Fail-closed pure Node SSR (React + VuerenderToStringwith zero DOM globals) and real Chromium dev-mode React<StrictMode>+ post-mount state-transition gate (3x rebake,directionalLight/strategiesclearing toundefined,textureQualityupdates, real.voxclass updates + rebake, stable-topology per-mesh overrides, dynamic shadow emit +receiveShadowtoggle, real.objVue asyncsrcsingle-mount, and controls interaction).Verification
pnpm verify— passed (155 script tests, all package unit tests, builds, typecheck, 3-way IR conformance, 7 packs, 6 bench bundles, 4 examples).pnpm test:coverage— passed across all 8 workspace packages.pnpm --filter @layoutit/polycss-website verify:domformat&pnpm build:website— 304 models (199,847 leaves), 23 static pages built.pnpm bench:gate:ci -- --base-ref origin/main --browsers chromium,firefox --software-backend --no-sandbox— 55/55 pass (23 strict + 28 cross-renderer parity at 0 px,threshold: 0,includeAA: true).pnpm bench:gate:perf -- --base-ref origin/main --software-backend --no-sandbox— 9/9 pass (0 childList and 0 descendant mutations; Reactdyn-lightp50 41.8 ms → 24.75 ms, JS/f 15.69 ms → 0.28 ms; Vuedyn-lightp50 49.9 ms → 24.9 ms, mutations 10,532 → 0).pnpm bench:gate:lifecycle -- --software-backend --no-sandbox— 13/13 pass.